#include "BasicOLED.h"
#include "BasicSpi.h"
#include <stdio.h>
#include <wiringPi.h>
 int main()
 {
	wiringPiSetup();

 	CBasicSpi spi(0, 1000000, 3);
 	CBasicLED oled(&spi);
	
	uchar DC = 2, CS = 1, RES = 0;

 	oled.begin(DC, CS, RES);
 	oled.clearMemery(0xFF);
 	oled.sendScreen();
	for(int i=0; i<100;i++)
	{
		delay(1000);
		oled.clearMemery(0x0F);
		oled.sendScreen();
		delay(1000);
		oled.clearMemery(0xF0);
		oled.sendScreen();
	}
// 	getch();
	return 0;
 }
